package com.itbac.controller;

import com.itbac.domain.User;
import com.itbac.openfeign.user.UserClient;
import com.itbac.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2021/4/19 0:23
 */
@RestController
public class UserController implements UserClient {
    @Autowired
    UserService userService;

    //http://127.0.0.1:8071/user/getOne/1
    @Override
    public User getOne(Integer uid) {
        return userService.getOne(uid);
    }

}
